<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>split</title>
    <script src="../jquery-1.7.2.js"></script>
</head>
<body>
<p>
    <span id="a"></span>
    <h5>看看console</h5>
</p>
<script>
    $(function(){
        var a ="i'm a lasagna hog";
        var b = a.split("").reverse().join("");
        console.log(b);
    })
</script>
</body>
</html>